#include "timer.h"

CTimer::CTimer(void)
{
	prevTime = clock();
}

CTimer::~CTimer(void)
{
}

void CTimer::parseMessage(Message& msg, vector<Message>& retMsg)
{
	switch(msg.MsgCode)
	{
	case MSG_TIMER_WAIT:
		//while(clock() < prevTime+1000);
		Sleep(100);
		prevTime = clock();
		Message m("Timer","All",MSG_TIMER);
		retMsg.push_back(m);
		break;
	}
}